package entity

import (
	"shqsoft.cn/pasnj/base"

	"github.com/jinzhu/gorm"
)

//COMP_CLIE_DGDK 国际结算量导入
type COMP_CLIE_DGDK struct {
	ID   int    `gorm:"AUTO_INCREMENT;primary_key;column:ID"`
	KHMC string `gorm:"column:KHMC;"`
	JJBH string `gorm:"column:JJBH;"`
	DRJG string `gorm:"column:DRJG;"`
	YWPZ string `gorm:"column:YWPZ;"`
	DRRQ string `gorm:"column:DRRQ;"`
}

//xwphAfterImport 导入后执行
func COMP_CLIE_DGDKAfterImport(tx *gorm.DB, params map[string]string) (err error) {
	err = tx.Exec("EXEC UP_COMP_CLIE_DGDK").Error
	if err != nil {
		return err
	}
	return nil
}

//TableName 国际中收导入表
func (COMP_CLIE_DGDK) TableName() string {
	return "T_COMP_CLIE_DGDK"
}

//COMP_CLIE_DGDKEF 返回结构体
func COMP_CLIE_DGDKEF() base.EntityFunc {
	return func() interface{} {
		entity := COMP_CLIE_DGDK{}
		return &entity
	}
}

//COMP_CLIE_DGDKESF 返回结构体数组
func COMP_CLIE_DGDKESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []COMP_CLIE_DGDK
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("COMP_CLIE_DGDK", base.NewDefaultDao(COMP_CLIE_DGDKEF(), COMP_CLIE_DGDKESF(), nil))
	base.SetAfterCallBack("COMP_CLIE_DGDK", COMP_CLIE_DGDKAfterImport)
}
